package org.example.DM.Controller;

import org.example.DM.Service.DmService;
import org.example.DM.Service.userService;
import org.example.DM.pojo.pythonDto;
import org.example.DM.pojo.userDto;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;


/**
 * @Author : zhangbo
 * @data : 2024/9/19
 * @description :
 */
@RestController
@RequestMapping("/Test")
public class DmController {
    @Resource
    private DmService dmService;
    @Resource
    private userService service;
    @GetMapping("/get")
    public List<Object> get(){
        List<userDto> result = service.getResult();
        List<pythonDto> result1 = dmService.getResult();
        List<Object>list=new ArrayList();
        list.addAll(result1);
        list.addAll(result);
        return list;
    }
}
